package com.clouddot.baipai.module;


import com.clouddot.baipai.contract.IAlaunchActivityContract;
import com.clouddot.baipai.contract.ISettingActivityContract;
import com.clouddot.baipai.model.AlaunchActivityModel;
import com.clouddot.baipai.model.SettingActivityModel;
import com.clouddot.baipai.presenter.AlaunchActivityPresenter;
import com.clouddot.baipai.presenter.SettingActivityPresenter;

import dagger.Module;
import dagger.Provides;

@Module
public class SettingActivityModule {

    private ISettingActivityContract.IView mView;

    public SettingActivityModule(ISettingActivityContract.IView view) {
        mView = view;
    }

    @Provides
    public ISettingActivityContract.IPresenter providerPresenter() {
        return new SettingActivityPresenter(mView, new SettingActivityModel(mView.getContext()));
    }
}
